﻿// ***********************************************************************
// Assembly         : STX.Domain
// Author           : seven.x
// Created          : 12-27-2013
//
// Last Modified By : seven.x
// Last Modified On : 12-27-2013
// ***********************************************************************
// <copyright file="BizSupplier.cs" company="驰创数码">
//     Copyright (c) 驰创数码. All rights reserved.
// </copyright>
// <summary></summary>
// ***********************************************************************

using System;
using System.Collections.Generic;

namespace STX.Domain
{
    /// <summary>
    /// Class BizSupplier.
    /// </summary>
    public class BizSupplier:BaseEntity
    {
        /// <summary>
        /// Gets or sets the area.
        /// </summary>
        /// <value>The area.</value>
        public int AreaId { get; set; }
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name { get; set; }
        /// <summary>
        /// Gets or sets the contacter.
        /// </summary>
        /// <value>The contacter.</value>
        public string Contacter { get; set; }
        /// <summary>
        /// Gets or sets the tel.
        /// </summary>
        /// <value>The tel.</value>
        public string Tel { get; set; }
        /// <summary>
        /// Gets or sets the decimal mail.
        /// </summary>
        /// <value>The decimal mail.</value>
        public string EMail { get; set; }
        /// <summary>
        /// Gets or sets the status.
        /// </summary>
        /// <value>The status.</value>
        public int Status { get; set; }

        public SupplierAuditingEnum Auditing { get; set; }


        public enum SupplierAuditingEnum
        {
            [Field(Name = "已审核")]
            Audited = 1,

            [Field(Name = "未审核")]
            NoAudited = 0,
        }

        /// <summary>
        /// Gets or sets the biz area.
        /// </summary>
        /// <value>The biz area.</value>
        public virtual BizArea BizArea { get; set; }

        public virtual List<BizQuotePriceTemplate> QuotePriceTemplates { get; set; }
    }
}
